﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace NetMicro.Cache.DelayBus
{
    /// <summary>
    /// 延迟消息处理接口
    /// </summary>
    public interface IDelayedMessageProcessor
    {
        /// <summary>
        /// 投递消息进待处理消息队列处理
        /// </summary>
        /// <returns></returns>
        Task DeliveryToReadyQueueAsync(string topic);

        /// <summary>
        /// 消费待处理队列
        /// </summary>
        /// <returns></returns>
        Task ConsumeReadyJobAsync(string topic);
    }
}
